<?php
	class Booksmodel extends CI_Model{
		public function query_user($data){
			$result = $this->db->query("select * from user where username='$data'");
			return $result->row_array();
		}
	}
?>